﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace game
{
    public class Thunderbolt : Projectile
    {
        public Thunderbolt(Scene scene, Ship shooter, int layerIndex, Vector3 position, Vector3 rotation)
            : base(scene, shooter, null, layerIndex, position, rotation)
        {
            this.moveSpeed = 50000.0f;
            this.Health = 1.0f;
            this.MaxHealth = this.Health;
            this.damage = 7.0f;
            this.lifeTimeMs = 1000;
            this.pSystemOffset = 0.0f;

            this.bSphere.Radius = 150.0f;
        }

        protected override void InitParticleSystem(Scene scene)
        {
            pSystem = new ThunderboltPSystem(scene, position);
            pSystem.Initialize();
        }

        protected override void Explode()
        {
            scene.BilboardMgr.ThunderShot(position, Vector3.Zero, 8);
        }
    }
}
